﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>添加用户信息</title>
    <link href="${pageContext.request.contextPath}/css/houtaimain.css" rel="stylesheet" type="text/css" />

</head>

<from>
<h1 class="h1_style"><i class="i_h1"></i>添加用户信息</h1>
<div class="div_left">

    <form id="form_demo" action="${pageContext.request.contextPath}/user/addUser" class="form_b">
        <p class="form_p"><label class="form_label">学号：</label><input type="text" name="username" class="form_input readonly " minlength="2"  required ><i class="i_start"></i> <a class="a_note">必填，密码会在后端自动生成</a> </p>
    <div class="clear"></div>
</div>

<div class="clear"></div>
<input type="submit" value="保存" class="but_save"/></from></p>

<script src="${pageContext.request.contextPath}/js/jquery.js"></script>

<script src="${pageContext.request.contextPath}/js/date/js/laydate.js"></script>
<script src="${pageContext.request.contextPath}/js/jquery-validation-1.14.0/dist/jquery.validate.min.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/js/jquery-validation-1.14.0/dist/localization/messages_zh.js" charset="utf-8"></script>
<script>
    !function () {
        laydate.skin('danlan'); //
        laydate({ elem: '#demo' });
        laydate({ elem: '#demo1' }); //
    } ();
</script>
<script >
    $.validator.setDefaults({
        submitHandler: function () {
            alert("修改成功");
        }
    });
    $().ready(function () {
        $(".form_b").validate();
    });
</script>
</body>
</html>
